<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
    <link rel="stylesheet" th:href="@{css/bootstrap.min.css}"/>
    <style type="text/css">
        body {
            padding-top: 50px;
        }

        .starter-tempalte {
            padding: 40px 15px;
            text-align: center;
        }
    </style>
</head>
<body>
<nav class="navber navbar-inverse navbar-fixed-top ">
    <div class="container">
        <a class="navbar-brand" href="#">Spring Security演示</a>
    </div>
    <div id="navbar" class="collapse navbar-collapse">
        <ul class="nav navbar-nav">
            <!--<li><a th:href="@{/}">首页</a></li>-->
        </ul>
    </div>
</nav>
<div class="starter-tempalte">
    <p th:if="${param.logout}" class="bg-waring">已成功注销</p>
    <p th:if="${param.error}"  class="bg-waring">有错误，请重试</p>
    <h2>使用账号密码登录</h2>
    <form name="form" th:action="@{/login}" method="post">
        <div class="form-group">
            <label for="username">账号</label>
            <input type="text" class="form-control" name="username" id="username" value="" placeholder="账号">
        </div>
        <div class="form-group">
            <label for="password"></label>
            <input type="password" class="form-control" name="password" id="password" placeholder="密码">
        </div>
        <div>
            <!-- 是否记住我功能勾选框 -->
            <input id="remember-me" name="remember-me" type="checkbox"/>　　　　　　　　　　　　　　　　
            <label for="remember-me">一周内记住我</label>
        </div>
        <input type="submit" id="login" value="Login" class="btn btn-primary">
    </form>

</div>
</body>
</html>